package com.breakfast.fun.data.entity.home.product;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/9/6.
 */
public class WeekdayState {
    private int wday;
    private String state;
    private String wdate;

    public static WeekdayState objectFromData(String str) {

        return new Gson().fromJson(str, WeekdayState.class);
    }

    public static List<WeekdayState> arrayDataBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<WeekdayState>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getWday() {
        return wday;
    }

    public void setWday(int wday) {
        this.wday = wday;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getWdate() {
        return wdate;
    }

    public void setWdate(String wdate) {
        this.wdate = wdate;
    }
}
